package cn.zjh.user.mapper;

import cn.zjh.base.vo.LoginVo;
import cn.zjh.user.domain.Logininfo;
import cn.zjh.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zjh
 * @since 2022-07-06
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    //通过用户名,电话，邮箱和用户类型，查询用户信息
    Logininfo loadByUsernameAndType(@Param("username") String username ,@Param("type") String type);

    //根据userid查询Logininfo数据
    Logininfo loadByUserId(Long userId);

}
